<template>
  <div>
    <el-table
      :data="tableData"
      border
      style="width: 100%"
      height="950">
      <el-table-column
        prop="date"
        label="日期">
      </el-table-column>
      <el-table-column
        prop="expenditure"
        label="系统支出">
      </el-table-column>
      <el-table-column
        prop="club"
        label="工会支出">
      </el-table-column>
      <el-table-column
        prop="share"
        label="分享支出">
      </el-table-column>
      <el-table-column
        prop="wzjh"
        label="万人回收">
      </el-table-column>
      <el-table-column
        prop="lh"
        label="龙虎回收">
      </el-table-column>
      <el-table-column
        prop="jdssl"
        label="彩票回收">
      </el-table-column>
      <el-table-column
        prop="ebg"
        label="二八回收">
      </el-table-column>
      <el-table-column
        prop="dsf"
        label="三风回收">
      </el-table-column>
      <el-table-column
        prop="all"
        label="总的回收">
      </el-table-column>
    </el-table>
    <!--分页-->
    <el-pagination
      style="margin-top: 20px"
      v-show="tableData.length > 20"
      background
      layout="prev, pager, next"
      :total="1000">
    </el-pagination>
  </div>
</template>

<script>
  import axios from 'axios'
  export default {
    created(){
      axios.get("/sytem").then(resp => {
        if(resp.data.result){
          console.log(resp.data.msg)
          this.tableData = resp.data.msg
        }
      })
    },
    data() {
      return {
        tableData: [],
      }
    }
  }
</script>

<style scoped>

</style>

